package models

import (
	// "gorm.io/gorm"

	"go-admin/common/models"
)

type SysMemberGoods struct {
	models.Model

	Category      string `json:"category" gorm:"type:varchar(64);comment:分类"`
	GoodsType     string `json:"goodsType" gorm:"type:varchar(64);comment:商品大类"`
	GoodsModel    string `json:"goodsModel" gorm:"type:varchar(64);comment:商品型号"`
	GoodsCode     string `json:"goodsCode" gorm:"type:varchar(64);comment:商品编码"`
	GoodsName     string `json:"goodsName" gorm:"type:varchar(128);comment:商品名称"`
	GoodsSpeci    string `json:"goodsSpeci" gorm:"type:varchar(64);comment:商品规格"`
	Remark        string `json:"remark" gorm:"type:varchar(255);comment:备注"`
	Status        string `json:"status" gorm:"type:int(11);comment:业务状态"`
	IsDeleted     string `json:"isDeleted" gorm:"type:int(1);comment:删除状态"`
	CreateAccount string `json:"createAccount" gorm:"type:varchar(64);comment:创建人"`
	CreateOrg     string `json:"createOrg" gorm:"type:varchar(64);comment:创建部门"`
	UpdateAccount string `json:"updateAccount" gorm:"type:varchar(64);comment:修改人"`
	models.ModelTime
	models.ControlBy
}

func (SysMemberGoods) TableName() string {
	return "sys_member_goods"
}

func (e *SysMemberGoods) Generate() models.ActiveRecord {
	o := *e
	return &o
}

func (e *SysMemberGoods) GetId() interface{} {
	return e.Id
}
